home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / usr / sybase / doc / dbprtype.man < prev    next >
Text File  |  1993-04-22  |  3KB  |  89 lines

  1.  
  2.   1                       Version 4.0 -- 5/1/89                 dbprtype
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  dbprtype
  6.  
  7.   FUNCTION:
  8.        Convert a token value to a readable string.
  9.  
  10.   SYNTAX:
  11.        char *dbprtype(token)
  12.  
  13.        int       token;
  14.  
  15.   COMMENTS:
  16.  
  17.        o Certain  routines-dbcoltype(),  dbalttype(),  dbrettype(),  and
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   dbprtype                Version 4.0 -- 5/1/89                        2
  25.   ______________________________________________________________________
  26.          dbaltop()-return token values representing SQL Server datatypes
  27.          or  aggregate operators.  dbprtype() provides a readable string
  28.          version of a token value.
  29.  
  30.        o For example, dbprtype() will take  a  dbcoltype()  token  value
  31.          representing  the  SQL Server  binary  datatype (SYBBINARY) and
  32.          return the string "binary".
  33.        o Here's a list of the token strings that dbprtype()  can  return
  34.          and their token value equivalents:
  35.  
  36.             Token String    Token Value         Description
  37.  
  38.             char            SYBCHAR             char datatype
  39.             text            SYBTEXT             text datatype
  40.             binary          SYBBINARY           binary datatype
  41.             image           SYBIMAGE            image datatype
  42.             tinyint         SYBINT1             1-byte integer datatype
  43.             smallint        SYBINT2             2-byte integer datatype
  44.  
  45.  
  46.   3                       Version 4.0 -- 5/1/89                 dbprtype
  47.   ______________________________________________________________________
  48.             int             SYBINT4             4-byte integer datatype
  49.             float           SYBFLT8             8-byte float datatype
  50.             bit             SYBBIT              bit datatype
  51.             money           SYBMONEY            money datatype
  52.             datetime        SYBDATETIME         datetime datatype
  53.             sum             SYBAOPSUM           sum aggregate operator
  54.             avg             SYBAOPAVG           average aggregate operator
  55.             count           SYBAOPCNT           count aggregate operator
  56.             min             SYBAOPMIN           minimum aggregate operator
  57.             max             SYBAOPMAX           maximum aggregate operator
  58.  
  59.   PARAMETERS:
  60.        token -  The SQL Server  token  value  (SYBCHAR,  SYBFLT8,  etc.)
  61.            returned  by  dbcoltype(), dbalttype(), dbrettype(), or dbal-
  62.            top().
  63.  
  64.   RETURNS:
  65.  
  66.  
  67.  
  68.   dbprtype                Version 4.0 -- 5/1/89                        4
  69.   ______________________________________________________________________
  70.        A pointer to a null-terminated string that is the readable trans-
  71.        lation  of  the token value.  The pointer points to space that is
  72.        never overwritten, so it is safe to call this routine  more  than
  73.        once  in  the same statement.  If the token value is unknown, the
  74.        routine returns a pointer to an empty string.
  75.  
  76.   SEE ALSO:
  77.        dbaltop, dbalttype, dbcoltype, dbrettype, types
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.